﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using Himall.CommonModel;
using Himall.DTO;
using Himall.Entity;

namespace Himall.Application.Mappers.Profiles
{
	public class MemberProfile:Profile
	{
		protected override void Configure()
		{
			base.Configure();

            CreateMap<Entity.MemberGrade, Himall.DTO.MemberGrade>();
            CreateMap<Himall.DTO.MemberGrade, Entity.MemberGrade > ();

            CreateMap<UserMemberInfo, DTO.Members>();
			CreateMap<DTO.Members, UserMemberInfo>();
            CreateMap<QueryPageModel<UserMemberInfo>, QueryPageModel<Himall.DTO.Members>>();

            CreateMap<MemberIntegral, DTO.UserIntegral>();
            CreateMap<DTO.UserIntegral, MemberIntegral>();



            //CreateMap<Entity.LabelInfo, Himall.DTO.Labels>();
            //CreateMap<Himall.DTO.Labels, Entity.LabelInfo>();


            //  CreateMap<Entity.MemberConsumeStatisticsInfo, DTO.MemberConsumeStatistics>();
            //  CreateMap<DTO.MemberConsumeStatistics, Entity.MemberConsumeStatisticsInfo>();

            CreateMap<Entity.UserMemberInfo, Himall.DTO.MemberPurchasingPower>();
            CreateMap<Entity.MemberOpenIdInfo, DTO.MemberOpenId>();
			CreateMap<DTO.MemberOpenId, Entity.MemberOpenIdInfo>();

			CreateMap<Entity.ChargeDetailInfo, DTO.ChargeDetail>();
			CreateMap<DTO.ChargeDetail, Entity.ChargeDetailInfo>();

			CreateMap<Entity.PromoterInfo, DTO.Promoter>();
			CreateMap<DTO.Promoter, Entity.PromoterInfo>();

            CreateMap<Entity.SendMessageRecordInfo, DTO.SendMessageRecord>();
            CreateMap<DTO.SendMessageRecord, Entity.SendMessageRecordInfo>();
		}
	}
}
